
function addcart(id)
{
    var ajxadd=new ajaxLoader();
    ajxadd.init({url:'/as/addcart',func:addsu});
    ajxadd.send('id='+id);
}

function addsu(obj)
{
    alert(obj.msg);
    document.getElementById('countcart').innerHTML="("+obj.count+")";
}